<?php
$this->breadcrumbs=array(
	'Issues'=>array('index'),
	'Manage',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('issue-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Kiểm tra bài giải</h1>


<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'issue-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'ID',
		'userID',
		'attempt_time',
		'gradeID',
		'emergency',
		'estimate_idle_time',
		/*
		'level_complex',
		'content',
		'status',
		'resolver',
		'createddate',
		'modifieddate',
		'deleted',
		'notify_date',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
